<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <script src="__STATIC__/js/base.js"></script>
    <title>服务商加盟-个人</title>
    <link rel="stylesheet" href="__STATIC__/css/base.css">
    <link rel="stylesheet" href="__STATIC__/css/privider.css">
    <link rel="stylesheet" href="__STATIC__/js/layer_mobile/need/layer.css">
    <script src="__STATIC__/js/jquery-1.11.1.min.js"></script>
    <script src="__STATIC__/js/form_validation.js"></script>
    <script src="__STATIC__/js/layer_mobile/layer.js"></script>
</head>
<style type="text/css">
    .input-inline .formcontent .inputstyle1{
        background: transparent;
    }
</style>
<style>
    .tab-item{
        padding-left:  0.55rem;
        height: 1.28rem;
    }
    .tab-item span{
        height: 1.28rem;
        line-height: 1.28rem;
    }
    .tab-item img{
        width:0.43933333rem ;
        margin-top: 0.55rem;
        margin-right: 0.55rem;
    }
    .active span{
        color: #22a0dc; ;
        border-bottom: 1px solid  #22a0dc; ;
    }
</style>
<body style="background: white">
<section class="wrap " style="background: white">
    <div  class="add-privider">
        <span class="add-privider-title" style="width: 5.52633333rem;">填写结算账户信息</span>
    </div>
    <div  class="privider-form">
        <form id="form1">
            <div class="form-content ">
                <div class="clearfix input-inline">
                    <div class="formtitle pull-left">收款账号：</div>
                    <div class="formcontent pull-left">
                        <input tabindex="1"  id="collection_account" class="inputstyle1" autocomplete="off" type="text" name="bankAccountNumber" placeholder="请输入收款账号" value="{$provider_data.bankAccountNumber ?? ''}"/>
                        <span class="success"></span>
                    </div>
                </div>
            </div>
            <div class="form-content ">
                <div class="clearfix input-inline">
                    <div class="formtitle pull-left">收款人：</div>
                    <div class="formcontent pull-left">
                        <input tabindex="1"  id="collection_name" class="inputstyle1" autocomplete="off" type="text" name="bankAccountName" value="{$provider_data.bankAccountName ?? ''}" placeholder="请输入收款人"/>
                        <span class="success"></span>
                    </div>
                </div>
            </div>
            <div class="form-content ">
                <div class="clearfix input-inline ">
                    <div class="formtitle pull-left">收款银行：</div>
                    <div class="formcontent pull-left ">
                        <input tabindex="1"  id="receiving_bank" class="inputstyle1 " autocomplete="off" type="text" name="bankBranchName" value="{$provider_data.bankBranchName ?? '' }" placeholder="请输入收款银行"/>
                        <span class="success"></span>
                    </div>
                </div>
            </div>
            <div class="form-content ">
                <div class="clearfix input-inline">
                    <div class="formtitle pull-left">收款银行支行：</div>
                    <div class="formcontent pull-left">
                        <input tabindex="1"  id="opening_bank" class="inputstyle1" autocomplete="off" type="text" name="bankName" value="{$provider_data.bankName ?? '' }" placeholder="请输入收款银行支行"/>
                        <span class="success"></span>
                    </div>
                </div>
            </div>
            <div class="form-content ">
                <div class="clearfix input-inline">
                    <div class="formtitle pull-left">收款周期：</div>
                    <div class="formcontent pull-left" style="border:none;;padding-left: 0">


                                    <select name="balancePeriod" class="organization">
                                        <option value="0"  {if condition="$provider_data.balancePeriod  eq 0 " } selected {/if} >实时结算</option>
                                        <option value="1"  {if condition="$provider_data.balancePeriod  eq 1 " } selected {/if}>按天结算</option>
                                        <option value="2"  {if condition="$provider_data.balancePeriod  eq 2  " } selected {/if}>按周结算</option>
                                        <option value="3"  {if condition="$provider_data.balancePeriod  eq 3  " } selected {/if}>按月结算</option>
                                    </select>

                    </div>
                </div>
            </div>
            <div class="privider-button-div" style="padding-bottom: 0.812rem">
            <input type="button" value="下一步" class="privider-button" id="sublimit" style="margin-top: 3.5rem">
           </div>
        </form>
    </div>
</section>
<script>
    $(function(){
        $('#sublimit').on('click',function(){
            //检测表单其他项
            var  res = searchSub();
            var url = window.location.href;
            if(res =='ok'){
                $.ajax({
                    cache: true,
                    type: "POST",
                    url: url,
                    data:$('#form1').serialize(),// 你的formid
                    async: false,
                    error: function(request) {
                        layer.msg('提交失败', {
                            icon: 2,
                            time: 2000 //2秒关闭（如果不配置，默认是3秒）
                        });
                    },
                    success: function(data) {
                        if(data.code =='ok'){
                            window.location.href='personal2'+'?memberId='+data.memberId;
                        }else {
                            layer.msg(data.msg, {
                                icon: 2,
                                time: 2000 //2秒关闭（如果不配置，默认是3秒）
                            });
                        }
                    }
                });
            }else{
                //信息框
                //提示
                layer.open({
                    content:res
                    ,skin: 'msg'
                    ,time:3 //2秒后自动关闭
                });
            }
        });
    });
</script>
</body>
</html>